import request from '@/utils/request'
export default {
  getComment(page, limit, courseId) {
    return request({
      url: `eduservice/comment/${page}/${limit}/${courseId}`,
      method: 'get'
    })
  },
  addComment(comment) {
    return request({
      url: `eduservice/comment/addComment`,
      method: 'post',
      data: comment
    })
  },
  removeComment(id) {
    return request({
      url: `eduservice/comment/removeComment`,
      method: 'delete',
      params: { 'id': id }
    })
  }

}
